import 'dart:io';

import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_flavor/flutter_flavor.dart';

import 'example_app.dart';

void main() {
  FlavorConfig(
      name: "DEVELOP",
      color: Colors.lightBlueAccent,
      location: BannerLocation.topEnd,
      variables: {
        "baseUrl": "https://apift2-newcommerce.amwaynet.com.cn/creatorconf-app/",
        "creatorUserName": "gh_25257c362212",
        "creatorPath": "/pages/index/index?shareFrom=",
        "miniProgramType": 2,
        "ossDomain": "cc-rc-api.amway.com.cn",
        "ossPath": "/v1/creator/sts",
        "ossAppCode": "APPCODE 7cdd888562c04bf1940c41d2e330612f",
        "ossEndpoint": "https://contenthub-pd.oss-cn-shenzhen.aliyuncs.com/",
        "ossUploadFileRoot": "creators/",
        "AppCode": "AppCode ea46756f1e2541f29ccdc7f596c281c9",
        "webPageUrl": "https://ressuperapp.amway.com.cn/",
        // "pictureBaseUrl":"https://resources-ft2.amway.com.cn/",
        "pictureBaseUrl":"https://resources.amway.com.cn/",
        "amwayBaseUrl":"https://cc-api-ft1.amwaynet.com.cn/mrm/v1",
        "appId": "wx36767331e29f793a",
        "universalLink": "https://ressuperapp.amway.com.cn"

      });

  runApp(ExampleApp());
  if (Platform.isAndroid) {
    // 以下两行 设置android状态栏为透明的沉浸。写在组件渲染之后，是为了在渲染后进行set赋值，覆盖状态栏，写在渲染之前MaterialApp组件会覆盖掉这个值。
    SystemUiOverlayStyle systemUiOverlayStyle =
    SystemUiOverlayStyle(statusBarColor: Colors.transparent);
    SystemChrome.setSystemUIOverlayStyle(systemUiOverlayStyle);
  }
}
